Management of control parameters in electronic systems

ABSTRACT

The machine implemented method for operating at least one electronic system comprises detecting a pattern of use of plural control parameters in a path through a graph of operational context switches to reach a target operational context; storing a representation of the pattern in association with an indicator identifying the target operational context; responsive to detecting at least one of a request for a switch of operation from a source operational context to the target operational context, a trapping on a resource access, and a detection of a breakpoint, retrieving the representation in accordance with the indicator identifying the target operational context; and responsive to the retrieving, applying at least one control parameter to said at least one electronic system to match the pattern.

RELATED APPLICATION

The present application claims priority to GB Application No. 1613514.7filed Aug. 5, 2016, which is hereby incorporated herein in its entiretyby reference

The present technology relates to methods and apparatus for operatingelectronic systems to manage the application of control parametersacross device or program operational context switches.

In many electronic systems, control parameters (for example, hardware orsoftware register or memory settings) need to be managed to achievesuitable processor performance, economy of memory use, detection ofanomalies indicating potential problems (such as the presence of malwarein the system) and optimal processing flow between and among processesand devices. The need to apply various types of control parameterdiffers according to the hardware or software context at any point inthe execution flow.

In a first approach, the described technology provides a machineimplemented method for operating at least one electronic system,comprising detecting a pattern of use of plural control parameters in apath through a graph of operational context switches to reach a targetoperational context; storing a representation of the pattern inassociation with an indicator identifying the target operationalcontext;

responsive to detecting at least one of a request for a switch ofoperation from a source operational context to the target operationalcontext, a trapping on a resource access, and a detection of abreakpoint, retrieving the representation in accordance with theindicator identifying the target operational context; and

responsive to the retrieving, applying at least one control parameter tothe at least one electronic system to match the pattern.

As stated above, the need to apply various types of control parameterdiffers according to the hardware or software context at any point inthe execution flow. For example, a purely input-receiving context needsto apply those control parameters that configure attached input devices,but has no need to apply control parameters to configure output devices.In the same way, for example, memory reservations for specific purposesmay differ from operational context to operational context.

Considering the execution flows of an electronic system as directedgraphs having nodes (or vertices) representing hardware and softwareoperational contexts and paths (or edges) representing the switches fromsource contexts to target contexts, each node having differing controlparameter requirements, there will often be repeating patterns ofcontrol parameter use associated with particular execution flow pathsbetween operational contexts. If information about these patterns of useof control parameters is stored in a way that associates the usepatterns of control parameters with the nodes in the graph, knowledge ofrepeating patterns may be accumulated and used to manage subsequentactions in the operation of the electronic system.

For example, where a large access control list (ACL) is distributedwidely in a system to the system's component programs and devices, itwill typically contain a large number of entries, not all of which willbe needed by every program or device at every point in the executionflow. Thus to download and apply all the control parameters in the ACLmay adversely affect performance and memory use. By using the presentlydisclosed technology to observe the actual pattern of use of the ACL'scomponent control parameters it may be determined for each contextswitch from a source node to a target node of the aforementioned graphof execution flow which parameters are mandatory or most frequentlyused, and the downloading and application of the control parameters atthe target node may be “trimmed” so that only those mandatory or mostfrequently used control parameters consume resources.

By acquiring knowledge of the aforementioned repeating patterns ofcontrol parameter use, various implementations of the presentlydisclosed technology may permit the system to provide the potential toachieve suitable processor performance, economy of memory use, detectionof anomalies indicating potential problems (such as the presence ofmalware in the system), and optimization of processing flow between andamong processes and devices. For clarity, the terms relating to contextswitches used in the present disclosure refer to any of the transitionsmade in the electronic system that may require changes in hardware orsoftware configuration. Examples include transfers of control to a peer,client or server device, program function calls, remote procedure calls,hardware and software interrupts, and the like.

Implementations of the disclosed technology will now be described, byway of example only, with reference to the accompanying drawings, inwhich:

FIG. 1 shows an example of a method of operation according to thepresently described technology; and

FIG. 2 shows an example of an electronic device operable according tothe presently described technology.

FIG. 3 shows an example directed graph, according to an embodiment.

In FIG. 1, there is shown method 100, which commences at Start step 102.As will be immediately clear to one of ordinary skill in the computingart, this may be the start of an iteration of the disclosed method,rather than a “cold” start. At step 104, a monitor is operated to detectin the graph path, at step 106, a pattern of use of control parametersby nodes in the graph, such as functions, interrupt procedures, ordevice resource accesses. At step 108, a representation of a detectedpattern is stored. This may be, for example, a complete representationor a reduced representation, such as a cryptographic hash of thepattern, and the storage may be volatile or non-volatile. At test step110, it is determined whether there has been an instruction to perform acontext switch of the device or program that is currently in operation.If there has been no such context switch instruction, the processcontinues to test step 112, where it is determined whether there hasbeen a trap or fault on access to a resource. If there has been no suchtrap or fault, the process continues to test step 114, where it isdetermined whether there has been a breakpoint in the process flow (forexample, a debug breakpoint). If no such breakpoint has been detected,the process ends at End step 122 (which may, of course, be a return toStart step 102, when the technique is applied in an iterative manner).

If, at test steps 110, 112, 114, the outcome is positive as to theexistence of a context switch, a trap or fault, or a breakpoint, themethod proceeds to step 116, at which the target operating context isidentified, and at step 118, the pattern of control parameter use thatwas previously stored in association with the target operational contextidentifier is retrieved from storage. At step 120, control parametersare applied in accordance with the identified pattern, and the processends at End step 122 (which may, of course, be a return to Start step102, in an iterative manner).

In FIG. 2 is shown an electronic system according to one implementationof the present technology. Graph path monitor 202 is in electroniccommunication with a program or device to detect the path taken througha graph of operational context switches and to pass information aboutthe use of control parameters by nodes in the path to pattern detector204, which stores representations of detected patterns in patternrepresentation store 206. Context switch detector 208, resource accesstrap detector 210 and breakpoint detector 212 are in electroniccommunication with the program or device to detect, respectively,context switch instructions, resource access traps or faults, andbreakpoints and to match identifiers of target operational contexts frompattern representation store 206. Pattern retriever 214 retrievesidentified patterns and in turn retrieves the control parametersmatching the pattern and passes them to control parameter applicator218, which applies selected (and may ignore deselected) controlparameters to the program or device.

The present technology is thus operable to compute, store, update andapply control parameters according to detected patterns acrossoperational context switches, including, for example, electronic devicereboots, local or remote function calls and program interrupts. Thetechnology may apply internal and external analytics or heuristicmethods to determine the parameters that are most likely to be needed.These methods include cases in which the patterns of use of controlparameters are sent by a client device to be analysed by a server deviceor equivalent distributed system and cases in which they are computedand analysed on the device itself. If the analysis is conducted by aserver or equivalent distributed system, the server or system may beoperable to interrogate the client device to ascertain additionalinformation about the patterns so as to refine the efficiency of thefuture operation of at least one electronic device. In a furtherrefinement, a grid, mesh or cloud computing arrangement may be used todistribute the work of analysis among peer, client and server devices,according to resource availability.

Control parameter uses such as, for example, access control list (ACL)based security solutions, have the drawback that ACLs tend to grow withthe application complexity. Applications with multiple softwarecomponents typically have multiple control parameter lists, whichinflates the number even further, thus reducing the manageability ofcontrol parameter application by individual nodes.

Many control parameters result in the application of hardwareconfigurations at runtime—for example, Memory Protection Unit (MPU)configurations, interrupt ownership and priority levels, or similarhardware configurations. In a similar manner, software controlparameters (such as local constant settings) determine the softwareconfigurations that apply in the contexts of the software executionflow. Different sets of parameters are applied when needed. Whenchanging the execution context, the source and destination parametersets need to be switched, and this can at times be prohibitively costlyin resource consumption in resource-constrained devices.

The limited capabilities of MPUs (such as the limited number of memoryregions available) are typically a bottleneck for the performance ofthese context switches. Often, a parameter list will be longer than theavailable number of regions, so that the operating system must decide insome manner which parameters to apply, typically on afirst-come-first-served basis according to the typically non-optimalorder of the stored control parameter data. If unused control parametersare downloaded and stored, this may be detrimental to the best use ofmemory resources. In addition, unapplied parameters must then be managedin an exception-based fashion, which is frequently detrimental to theperformance of the electronic device.

The present technique provides a mechanism, typically at the deviceoperating system level or in some higher-level server or distributedsystem, which analyses and computes the patterns for the application ofcontrol parameters. In an alternative, tooling according to the presenttechnique may be associated with particular device drivers, or with oneor more applications. During runtime, the need for the application ofcertain control parameters can be logged to determine the most likelyneeded ones or those that must be first or mandatorily applied, and togenerate application patterns that are specific to the use of a softwaremodule or of a hardware device. The entire patterns may be stored in astorage device. In another implementation, a reduced representation,such as a mathematical transform, for example a hash (possibly acryptographic hash) of the pattern, may be stored. One alternative isthe storage of a mathematical transform consisting of patternprobabilities calculated using a modulo-arithmetical count technique tocondense the potentially very large number of control parameterapplication patterns into a reduced number of probability buckets.

In one implementation, these patterns might be measured using heuristicmethods by the subject device itself In other implementations, aserver-side or distributed analysis tool may be used to log the controlparameter accesses and report the metrics, or the outcome of theiranalysis, back to the device.

The device may compute control parameter application patterns for eachsoftware and hardware component, comprising at least (i.) the order ofcontrol parameter application, and (ii.) the corresponding hardware orsoftware execution environment (context). In other implementations, thepatterns might include metadata that describe the most favourableconditions in which to apply a given control parameter.

In one implementation, control parameters can be assigned timestampsthat describe the time of application. Control parameters with similartimestamps can be grouped together and be assigned a single hash.Several control parameter groups will generate several hashes that canbe represented as graphs in which the paths (edges) are weighted. Eachweight represents the likelihood of the transition between two contextshaving associated control parameter groups. The control parameterapplication scheme can then apply the individual control parameters in acontrol parameter group only when they are needed, based on thesepatterns.

In another implementation, control parameters can also be categorizedaccording to their priority and frequency of occurrence. For example,control parameters that cover very rarely-used resources, such asinfrequently-referenced registers, might be marked as passive, meaningthat the operating system will never apply them actively. An exceptionmay then be used to handle the passive control parameters if they are infact needed, but at least no processing time or MPU region is wasted inthe normal case according to the probabilities determined by the storedpattern. In another implementation, some control parameters might bemarked as safety critical, meaning that they are always applied, forexample, in contexts that require strict timing requirements, regardlessof their frequency of use.

In another implementation, the control parameter use patterns can betracked and stored at the granularity level of single functions. Eachfunction can be annotated at runtime with the sets of control parametersthat did or did not trigger an access fault. The execution of successivefunctions would generate an execution stream in which each functionrepresents a node of a graph, with each path between nodes representingan operational context switch.

In one implementation in which function calls represent the main causeof context switches, for each node in the graph, afunction-call-stack-entry-specific hash may be generated and stored in ahash table. Thus the execution flow associates the pattern of controlparameter use with each of the entries in the call stack. The storedhashes represent the execution flow (the order of function calls) andthe associated set of control parameters that were needed for each nodein the graph representing the execution flow. In one implementation, thecall-stack-specific node hashes can be associated with Bloom filters,which, given a hash, are able to determine whether a control parameterpattern belongs to a node. This technique is efficient at performing aruntime check to determine whether a pattern has been observed before.If the pattern has been observed before, the hash table provides thelist of best control parameters to apply. If the pattern has not beenobserved before, a fall-back approach may be used, such as a simpleround-robin, a least-recently-used technique or afirst-come-first-served approach to applying the control parameters.

In the implementation of the Bloom filter, the hash table can eithercontain (i.) the hash of the whole pattern or (ii.) the hash of all thesub-patterns. In this way, different levels of granularity can beexploited (a single function, group of functions, a whole executionflow). An example directed graph is depicted in FIG. 3.

Assuming that execution time flows from left to right, all the possiblesub-patterns are A, A-B, A-B-C, A-B-C-D, E, E-F, E-F-C, E-F-C-D. In oneimplementation the technique could fingerprint the pattern at the nodesA, E, C, D, generating the patterns, A-B-C, A-B-C-D, E-F-C, E-F-C-D. Inthis way, the mutating patterns of control parameter use at each nodecan be stored in association with the identifier of the target node ofeach context switch for retrieval at a subsequent instance of a contextswitch from the same source to the same target.

In such an implementation, in the presence of inter-process orinter-program communication, the control parameter annotations storedfor each node can be further extended to include otherperformance-critical metadata, such as metadata that can speed-upmessage delivery and context switching; for example, information about acall sequence originating from interrupt requests or peripheral deviceoperations.

In another implementation, a special version of a Bloom filter can beused, which is called a weighted Bloom filter. The same controlparameter pattern, resulting in the same hash, can be repetitivelyinserted in the hash table. Each time a hash is inserted, a counter(weight) is increased. In this way the Bloom filter can returnprobabilistic results that are weighted according to the likelihood of apattern to occur and its frequency of occurrence at any node in theexecution flow graph.

In one refinement of the technology, it is possible to pre-emptivelyprepare for a later node in the graph when resources available at anearlier node permit. For example, if, in an execution flowA->B->C->D->E, node E generates a fault requiring UART0 (UniversalAsynchronous Receiver/Transmitter 0), with the disclosed pattern-basedtechnology it is possible on a subsequent instance of the flow to “hint”the need of UART0 to all the nodes that are probably leading up to E,but with lower priorities. Thus, node A would be instructed to apply thecontrol parameter to configure UART0 art 10% priority, B at 15%, and soon. At node E, the priority is 100%. In this implementation, if thereare spare resources, such as memory regions, at an earlier node, say,node C, UART0 may be configured there, without waiting for node E totrigger.

This can be achieved by keeping the stack of target nodeidentifier/pattern data in memory of the given call stack (which has theadvantage of low overhead and a typically capped maximum depth) and thenannotating all the control parameters for each node in the stack withdecreasing priorities (either by use of the aforementioned weightedBloom filter, or by application of any other method of settingprobabilistic weights for annotating target IDs).

In a further refinement, an additional annotation to each of the storedpatterns may be used to distinguish a pattern of control parameter usein one thread from a similar, but not identical, pattern of controlparameter use in a different thread. For example, thread 1 uses theprintf function specifying UART0 as the destination at a particularnode, and thus the stored pattern would normally indicate to furtherinstances of the flow that UART0 should be configured at a highpriority. However, thread 2 uses the printf function specifying UART1 asthe destination at the matching node in its instance of the graphedexecution flow, and thus configuring UART0 would be wasteful. This maybe avoided by annotating the patterns with the thread identifiers toprovide additional precision in the implementation of the describedtechnology.

In the call-stack implementation, it is further possible to refine thetechnology by annotating or seeding the control parameter patterns withthe return address of the call, as well as the target function address.By doing this, multiple separate calls to the same function that mutatethe pattern forward through the flow will be individually identifiableand distinguishable from iterative calls to the same function executedin a loop.

Further, once the described technology has been implemented, it ispossible to accept user inputs to the described method for annotatingthe patterns. User commands may be used to override the method to modifythe pattern based on user observation, where the “user” may be a humanuser, such as an end-user, a system programmer, or an administrator, butequally may be a user program, procedure or device. For example, anintelligent monitoring program at a server device may be able tocorrelate the information from many devices and programs to improve theefficiency of control parameter use at one or more devices, whereas asingle device may have too-limited processor or memory resources toperform the requisite complex analysis of the patterns.

In case of inbound remote procedure calls or inter-program orinter-process calls the origin of the call and the remote call stackmight be used to further improve the precision of the control parameterprediction. The Bloom filters may be control parameter-specific, meaningthat at each node each control parameter is compared against theavailable information regarding the control parameter occurrence. Thisapproach could also be implemented with a threshold, so that a minimumfrequency is required before a control parameter is applied to theelectronic system. More generally, patterns may be categorized intoprobability buckets.

Once the pattern is computed, it can be stored in flash or in a similarstorage and protected in the same manner as any other private memoryresource. In one implementation, key-value storage arrangement can beused to access and update subsequent control parameter use patterns oncenewer metrics are computed.

Upon reboot or another operation context switch, the operating systemcan fetch the stored control parameter patterns and use them in place ofthe default ones typically provided by the device or program itself in aflat form, or in place of the previous patterns stored in an older entryof the key-value storage.

In another implementation, even if the patterns are not actively storedin any non-volatile storage, they can still be stored in volatile memoryand used at runtime. Since the level of the granularity can be fairlyhigh (e.g., at function level), annotations as described above can stillbe used in the process to detect and apply recurring patterns even inthe same power cycle.

In another implementation, a group of “Internet of Things” (IoT) devicescan operate the same method of pattern analysis and storage but in apseudo-random way by suspending the application of some controlparameters to the device or program temporarily, so that differentpatterns can be analysed for their efficiency and then shared across thenetwork in a distributed way. The entire group of devices may thus gainshared knowledge of the most effective and efficient patterns to applyat various points in the execution flow. A centralized service maycollect these patterns and reconcile them into a single set, dependingon the individual analysis. This service may also be designed to requestrefined measurements from certain paths through the graph of theexecution flow in case of inconclusive measurements.

The statistics about the occurrence of any given pattern can also beused to trade off performance against power consumption. A pattern canbe either applied or ignored based on the probability of a pattern'soccurrence balanced against the resource cost of enforcing its controlparameters.

The use of recognized patterns may increase the performance of thecontext switches and in general of the application of controlparameters. In addition, the operating system will be less frequentlyrequired to recover from exceptions caused by an incorrectly orsub-optimally disabled control parameter that could have been retainedin force from an earlier node in the execution flow graph.

In one implementation, the step of applying at least one controlparameter may comprise applying only selected ones of the plural controlparameters to match the pattern, and by implication not applyingdeselected ones of the plural control parameters to match the pattern.

The step of applying at least one control parameter may compriseapplying at least selected ones of the plural control parametersaccording to a time order of use to match the pattern. In anotherimplementation, the step of applying at least one control parameter maycomprise applying at least selected ones of the plural controlparameters according to a priority order derived from the pattern.

The step of detecting a pattern of use of control parameters maycomprise detecting a pattern of use of at least one of access controllist parameters, memory management parameters, cache managementparameters, interprocess communication parameters, remote procedure callparameters, and local function call parameters.

The step of storing a representation may comprise storing at least oneof an entire pattern and a mathematical transform, such as a hash(cryptographic or otherwise), of the pattern. The step of detecting apattern of use of plural control parameters in a path through a graph ofoperational context switches may comprise detecting the pattern in apath through a graph of at least one of: a system reboot, a functioncall, a procedure call, and a software or hardware interrupt.

In a refinement of the technology, the representation of the pattern maybe seeded or annotated with a process or thread identifierdistinguishing the pattern as detected in a first thread or process froma pattern detected in a further thread or process.

The technology herein disclosed may further comprise accumulatingmultiple patterns at a server device or distributed processing system,and analysing the patterns for probability of occurrence at at least onenode. The outcome of the analysis may then be distributed for use by anumber of electronic devices. The server or distributed system may alsointerrogate one or more electronic devices to acquire additional datafor one or more of the patterns, so as to take advantage of themultiplicity of results obtained from the devices to improve theirindividual operational efficiency.

In one implementation the patterns may be used to assist in detecting ananomalous pattern of control parameter use as compared with a storedpattern and emitting an alert signal to indicate that there may be anerror or that malware may be interfering with the normal operation ofone or more of the electronic devices. The technique may also acceptexternal input (such as input from a human or external automated system)to add or modify context-specific data to a pattern. In addition, themethod may be adapted to add address data to said pattern distinguishingiterative calls from non-iterative calls. In this way, resources, suchas memory space, are not unnecessarily consumed by pattern datagenerated by loops in a program's execution flow.

Once a path through the graph of operational context switches has beenanalysed, it can, in a further refinement, be used to predict whichcontrol parameter settings, such as memory allocations, can or should beapplied and retained by an earlier node in a flow through the graph toachieve improved performance later in the most likely following path. Inaddition, if a number of devices or programs have very well establishedpatterns of control parameter use, the optimisations may bepre-installed or downloaded from a central source with the deviceoperating system, other firmware or a particular application program orgroup of programs.

As will be appreciated by one skilled in the art, the present techniquemay be embodied as a system, method or computer program product.Accordingly, the present technique may take the form of an entirelyhardware embodiment, an entirely software embodiment, or an embodimentcombining software and hardware.

Furthermore, the present technique may take the form of a computerprogram product embodied in a computer readable medium having computerreadable program code embodied thereon. The computer readable medium maybe a computer readable signal medium or a computer readable storagemedium. A computer readable medium may be, for example, but is notlimited to, an electronic, magnetic, optical, electromagnetic, infrared,or semiconductor system, apparatus, or device, or any suitablecombination of the foregoing.

Computer program code for carrying out operations of the presenttechniques may be written in any combination of one or more programminglanguages, including object oriented programming languages andconventional procedural programming languages.

For example, program code for carrying out operations of the presenttechniques may comprise source, object or executable code in aconventional programming language (interpreted or compiled) such as C,or assembly code, code for setting up or controlling an ASIC(Application Specific Integrated Circuit) or FPGA (Field ProgrammableGate Array), or code for a hardware description language such asVerilog™ or VHDL (Very high speed integrated circuit HardwareDescription Language).

The program code may execute entirely on the user's computer, partly onthe user's computer and partly on a remote computer or entirely on theremote computer or server. In the latter scenario, the remote computermay be connected to the user's computer through any type of network.Code components may be embodied as procedures, methods or the like, andmay comprise sub-components which may take the form of instructions orsequences of instructions at any of the levels of abstraction, from thedirect machine instructions of a native instruction set to high-levelcompiled or interpreted language constructs.

It will also be clear to one of skill in the art that all or part of alogical method according to embodiments of the present techniques maysuitably be embodied in a logic apparatus comprising logic elements toperform the steps of the method, and that such logic elements maycomprise components such as logic gates in, for example a programmablelogic array or application-specific integrated circuit. Such a logicarrangement may further be embodied in enabling elements for temporarilyor permanently establishing logic structures in such an array or circuitusing, for example, a virtual hardware descriptor language, which may bestored and transmitted using fixed or transmittable carrier media.

In one alternative, an embodiment of the present techniques may berealized in the form of a computer implemented method of deploying aservice comprising steps of deploying computer program code operable to,when deployed into a computer infrastructure or network and executedthereon, cause said computer system or network to perform all the stepsof the method.

In a further alternative, an embodiment of the present technique may berealized in the form of a data carrier having functional data thereon,said functional data comprising functional computer data structures to,when loaded into a computer system or network and operated upon thereby,enable said computer system to perform all the steps of the method.

It will be clear to one skilled in the art that many improvements andmodifications can be made to the foregoing exemplary embodiments withoutdeparting from the scope of the present technique.

The invention claimed is:
 1. A machine implemented method for operatingat least one electronic system, comprising: detecting a pattern of useof plural control parameters in a path through a graph of operationalcontext switches to reach a target operational context; storing arepresentation of said pattern in association with an indicatoridentifying said target operational context; responsive to detecting atleast one of a request for a switch of operation from a sourceoperational context to said target operational context, a trapping on aresource access, and a detection of a breakpoint, retrieving saidrepresentation in accordance with said indicator identifying said targetoperational context; and responsive to said retrieving, applyingselected ones of said plural control parameters according to a timeorder of use to match said pattern.
 2. The machine implemented method ofclaim 1, wherein said step of applying comprises applying selected onesof said plural control parameters according to a priority order derivedfrom said pattern.
 3. The machine implemented method of claim 1, whereinsaid step of detecting a pattern of use of control parameters comprisesdetecting a pattern of use of at least one of: access control listparameters, memory management parameters, cache management parameters,interprocess communication parameters, remote procedure call parameters,and local function call parameters.
 4. The machine implemented method ofclaim 1, wherein said step of storing a representation comprises storingat least one of an entire said pattern and a mathematical transform ofsaid pattern.
 5. The machine implemented method of claim 4, wherein saidmathematical transform of said pattern is a hash.
 6. The machineimplemented method of claim 1, wherein said step of detecting a patternof use of plural control parameters in a path through a graph ofoperational context switches comprises detecting said pattern in a paththrough a graph comprising at least one of: a system reboot, a functioncall, a procedure call, and a program interrupt.
 7. The machineimplemented method of claim 1, further comprising seeding saidrepresentation of said pattern with at least one of a thread identifierdistinguishing a first said pattern as detected in a first thread from afurther said pattern detected in a further thread and a processidentifier distinguishing a first said pattern as detected in a firstprocess from a further said pattern detected in a further process. 8.The machine implemented method of claim 1, further comprising detectingan anomalous pattern of control parameter use as compared with a storedpattern and emitting an alert signal.
 9. The machine implemented methodof claim 1, further comprising accepting external input to addcontext-specific data to at least one said pattern.
 10. The machineimplemented method of claim 1, further comprising adding return addressdata to said pattern distinguishing iterative calls from non-iterativecalls.
 11. The machine implemented method of claim 1, furthercomprising: accumulating multiple said patterns at at least one of aserver device and a distributed processing system; and analysing saidpatterns for probability of occurrence at at least one node.
 12. Themachine implemented method of claim 11, further comprising distributingan outcome of said pattern analysis to said at least one electronicdevice and to at least one further electronic device.
 13. The machineimplemented method of claim 11, further comprising interrogating one ormore said electronic devices by said at least one of a server device anda distributed processing system to acquire additional data for at leastone said pattern.
 14. An electronic control device comprising logicapparatus for operating at least one electronic system, comprising: adetector for detecting a pattern of use of plural control parameters ina path through a graph of operational context switches to reach a targetoperational context; a store for storing a representation of saidpattern in association with an indicator identifying said targetoperational context; a retriever, responsive to said detector detectingat least one of a request for a switch of operation from a sourceoperational context to said target operational context, a trapping on aresource access, and a detection of a breakpoint, for retrieving saidrepresentation in accordance with said indicator identifying said targetoperational context; and an applicator, responsive to said retrieving,for applying selected ones of said plural control parameters accordingto a time order of use to match said pattern.
 15. A computer programproduct stored on a non-transitory computer-readable medium comprisingcomputer program code to, when loaded into a computer system, cause saidsystem to perform: detecting a pattern of use of plural controlparameters in a path through a graph of operational context switches toreach a target operational context storing a representation of saidpattern in association with an indicator identifying said targetoperational context; responsive to detecting at least one of a requestfor a switch of operation from a source operational context to saidtarget operational context, a trapping on a resource access, and adetection of a breakpoint, retrieving said representation in accordancewith said indicator identifying said target operational context andresponsive to said retrieving, applying selected ones of said pluralcontrol parameters according to a time order of use to match saidpattern.